package com.tunnel.home.entity;

import java.util.Date;

import org.axe.annotation.persistence.Comment;
import org.axe.annotation.persistence.Id;
import org.axe.annotation.persistence.JustInsert;
import org.axe.annotation.persistence.Table;
import org.axe.annotation.persistence.Unique;
import org.axe.constant.IdGenerateWay;

@Table(tableName="user", comment = "用户")
public class User {

	@Comment("ID")
	@Id(idGenerateWay=IdGenerateWay.AUTO_INCREMENT)
	private Long id;

	@JustInsert
	@Unique
	@Comment("邮箱")
	private String email;

	@JustInsert
	@Comment("邮箱状态：0.未验证 1.已验证")
	private int emailStatus;
	
	@Comment("密码")
	private String password;

	@Comment("盐")
	private String salt;
	
	@JustInsert
	@Comment("用户的token")
	private String token;
	
	@Comment("创建时间")
	private Date createTime;
	
	@Comment("账户状态：0.欠费 1.有效")
	private int status;
	
	@Comment("账户到期时间")
	private Date expireTime;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getEmailStatus() {
		return emailStatus;
	}

	public void setEmailStatus(int emailStatus) {
		this.emailStatus = emailStatus;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}
	
}
